<?php
Class Servicioobtenido extends AppModel {
	
	var $name = 'Servicioobtenido';
	var $belongsTo = array
	(
		'Servicio' => array
		(
			'className' => 'Servicio',
			'conditions' => '',
			'order'   => '',
			'foreignKey' => 'servicios_id'
		)
	);
/*	var $hasMany = array 
	(
		'Prestacion' => array 
			(
				'className'=>'Prestacion',
					'conditions'=> '',
					'order'=> '',
					'limit'=>'',
					'foreignKey' => 'prestacions_id',
					'dependent' => false,
					'exclusive' => false,
					'finderQuery' => '',
					'fields'     => '',
					'offset'     => '',
					'counterQuery' => ''
			),
		'Cuenta' => array 
			(
				'className'=>'Cuenta',
					'conditions'=> '',
					'order'=> '',
					'limit'=>'',
					'foreignKey' => 'cuentas_id',
					'dependent' => false,
					'exclusive' => false,
					'finderQuery' => '',
					'fields'     => '',
					'offset'     => '',
					'counterQuery' => ''
			)
	
	);*/
	
	//Validaciones de los campos	
	var $validate = array
	(
		//'nombre' => '/^[a-zA-Z0-9\W\.\-\_\s]{2,50}$/i'//,
		//'vencimiento' => '/^[0-9\/]{8,/}$/i'
	);
	
}
?>